/*
 * @Author: fisher
 * @Date: 2024-01-16 14:27:12
 * @LastEditTime: 2024-01-18 10:08:32
 * @LastEditors: fisher
 * @Description:
 * @FilePath: \front-end-template\src\modules\DataManage\utils\map\load.js
 */

export const load3dtilesByUrl = async (url, headers) => {
  const resource = new Cesium.Resource({
    url,
    headers,
  });
  const t = await Cesium.Cesium3DTileset.fromUrl(resource);
  viewer.scene.primitives.add(t);
  return t;
};
